package com.hiep.connect.client.event;

import java.util.List;

import com.google.gwt.event.shared.GwtEvent;
import com.hiep.connect.shared.MyUser;

public class AddFriendEvent extends GwtEvent<AddFriendEventHandler> {
	public static Type<AddFriendEventHandler> TYPE = new Type<AddFriendEventHandler>();

	private List<MyUser> selectedFriends;

	public List<MyUser> getSelectedFriends() {
		return selectedFriends;
	}

	public AddFriendEvent(List<MyUser> selectedFriends) {
		this.selectedFriends = selectedFriends;
	}

	@Override
	public Type<AddFriendEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(AddFriendEventHandler handler) {
		handler.onAddFriend(this);
	}
}
